package exercise;

public class Q38_Book2 {
	private String title;
	private int allpage;
	private String writer;
	
	public Q38_Book2() {this.title = ""; this.allpage = 0; this.writer = "";}
	public Q38_Book2(String title, int allpage, String writer) {
		this.title = title;
		this.allpage = allpage;
		this.writer = writer;
	}
	
	public void setTitle(String title) {this.title = title;}
	public void setAllpage(int allpage) {this.allpage = allpage;}
	public void setWriter(String writer) {this.writer = writer;}
	
	public String getTitle() {return this.title;}
	public int getAllpage() {return this.allpage;}
	public String getWriter() {return this.writer;}
}
